hipengineCgiMain

This is the function GenericMain calls. View its source for some simple boilerplate you can copy/paste and modify, or you can call it yourself from your main.

void
hipengineCgiMain
(
alias fun
CustomCgi = Cgi
long maxContentLength = defaultMaxContentLength
)
(
string[] args
,
string servePath
)
if (
is(CustomCgi : Cgi)
)

Parameters

fun

Your request handler

CustomCgi

a subclass of Cgi, if you wise to customize it further

maxContentLength

max POST size you want to allow

args string[]

command-line arguments

Meta

History

Documented Sept 26, 2020.